using System;
using System.Collections.Generic;
using System.Text;
namespace BLL.BusinessLayer
{
	[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/")]
	[Serializable]
	public class ClsTest_Question: BusinessObjectBase
	{

		public ClsTest_Question() {}

		#region InnerClass
		public enum ClsTest_QuestionFields
		{
			Test_Question_ID,
			TestID,
			QuestionID,
			ChoiceID,
			IsCorrect
		}
		#endregion

		#region Data Members

			int _test_Question_ID;
			int _testID;
			int _questionID;
			int? _choiceID;
			int? _isCorrect;

		#endregion

		#region Properties

		public int  Test_Question_ID
		{
			 get { return _test_Question_ID; }
			 set
			 {
				 if (_test_Question_ID != value)
				 {
					_test_Question_ID = value;
					 PropertyHasChanged("Test_Question_ID");
				 }
			 }
		}

		public int  TestID
		{
			 get { return _testID; }
			 set
			 {
				 if (_testID != value)
				 {
					_testID = value;
					 PropertyHasChanged("TestID");
				 }
			 }
		}

		public int  QuestionID
		{
			 get { return _questionID; }
			 set
			 {
				 if (_questionID != value)
				 {
					_questionID = value;
					 PropertyHasChanged("QuestionID");
				 }
			 }
		}

		public int?  ChoiceID
		{
			 get { return _choiceID; }
			 set
			 {
				 if (_choiceID != value)
				 {
					_choiceID = value;
					 PropertyHasChanged("ChoiceID");
				 }
			 }
		}

		public int?  IsCorrect
		{
			 get { return _isCorrect; }
			 set
			 {
				 if (_isCorrect != value)
				 {
					_isCorrect = value;
					 PropertyHasChanged("IsCorrect");
				 }
			 }
		}


		#endregion

		#region Validation

		internal override void AddValidationRules()
		{
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("Test_Question_ID", "Test_Question_ID"));
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("TestID", "TestID"));
			ValidationRules.AddRules(new Validation.ValidateRuleNotNull("QuestionID", "QuestionID"));
		}

		#endregion

	}
}
